package sz3;

public class UserServiceImpl implements UserService{
    private UserDao userDao;

    /**
     * 保存用户信息
     */
    public void save(User user) {
        userDao.save(user);
    }
    /**
     * dao属性的setUserDao访问器，会被Spring调用，实现依赖注入
     */
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
